qmake4_base.bbclass: Adding check for staging directory check for native builds

When building a basic Qt5 native application, the build fails on the do_install task as a result of the  variable being empty. This causes the copy command in the test block to fail because it is trying to copy files from/to itself.