Hiding flash and alert if there is none