fixed handling of missing libraries in require

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <norluk@luxoft.com>
Change-Id: I7e5fdbb372ac7b2b51d9b836d823f0515d2144bf