I found the probable cause of the problem. You need to activate the Messaging app to "appear on top". To do that, go to Settings -> Apps -> Application manager -> (press the 3 dots on the upper right corner to access the pull down menu) -> Apps that can appear on top.
On that screen look for...