I was unable to recreate the behavior that you are experiencing. That being said, please have in mind that the option to change the status bar color became available in Android 5.0 with the introduction of Material Design. Older versions of Android do not have this functionality and I am not aware of any workaround that you could use to accomplish such behavior.
Additionally, if you are using an Android 5.0+ version I would ask you to provide us with a sample app that reproduces the problem so we could investigate this issue further.
I hope this helps.